import request from '@/utils/request'

export function login(username, password) {
  return request.post('/shipping/systemUser/login', {
    account: username,
    password: password
  })
}

export function getInfo(token) {
  return request.get('/shipping/systemUser/info')
}

export function logout() {
  return request({
    url: '/shipping/sysUser/logout',
    method: 'post'
  })
}

export function updatePwd(params) {
  return request({
    url: '/shipping/account/updatePwd',
    method: 'post',
    params
  })
}
